home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / hungerstrike.swf / scripts / DefineSprite_251_Interface / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-28  |  624 b   |  5 lines

  1. Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable)
  2. {
  3.    getURL("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open(\'" + url + "\',\'" + winName + "\',\'" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top=\'+((screen.height/2)-(" + h / 2 + "))+\',left=\'+((screen.width/2)-(" + w / 2 + "))+\'" + "\')}else{myWin.focus();};void(0);","");
  4. };
  5.